package flex.cc.basicinformation.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import flex.cc.basicinformation.entity.ValueAddedServiceProviderConfigEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;


/**
 * @author wkangle
 * @className ValueAddedServiceProviderConfigDao
 * @description 增值服务服务商接口配置信息dao
 * @time 2022-02-24 14:59:57
 */
@Mapper
@Repository
public interface ValueAddedServiceProviderConfigDao extends BaseMapper<ValueAddedServiceProviderConfigEntity> {

    /**
     * @param params 查询参数
     * @return
     * @description 根据参数查询增值服务服务商接口配置信息
     * @author wkangle
     * @time 2022-02-24 15:00:03
     * @exception/throws
     */
    ValueAddedServiceProviderConfigEntity getOneByParams(Map<String, Object> params);

    /**
     * @description 根据增值服务商的主键id删除增值服务商配置信息
     * @param spid 增值服务商主键id
     * @return
     * @author wkangle
     * @time 2022/02/28 0028 9:43
     * @exception/throws
     */
    int deleteBySpid(Long spid);

    /**
     * @description 根据查询参数获取增值服务商接口配置信息
     * @param params 查询参数
     * @return
     * @author wkangle
     * @time 2022/02/28 0028 10:25
     * @exception/throws
     */
    List<ValueAddedServiceProviderConfigEntity> queryByParams(Map<String, Object> params);
}
